import { DEFAULT_LAYOUT } from "../base"
import { AppRouteRecordRaw } from "../types"

const FORM: AppRouteRecordRaw = {
  path: "/form",
  name: "form",
  component: DEFAULT_LAYOUT,
  meta: {
    locale: "menu.form",
    icon: "icon-settings",
    requiresAuth: true,
    order: 3
  },
  children: [
    {
      path: "step",
      name: "Step",
      component: () => import("@/views/form/step/index.vue"),
      meta: {
        locale: "menu.form.step",
        requiresAuth: true,
        roles: ["admin"]
      }
    },
    {
      path: "group",
      name: "Group",
      component: () => import("@/views/form/group/index.vue"),
      meta: {
        locale: "menu.form.group",
        requiresAuth: true,
        roles: ["admin"]
      }
    }
  ]
}

export default FORM
